#include "../source/server.hpp"

int main()
{
    Socket cli;
    cli.CreateClient(8880, "127.0.0.1");
    std::string message = "hello tc !!!";
    for (int i = 0; i < 5; i++)
    {
        cli.Send(message.c_str(), message.size());
        char buffer[1024] = {0};
        cli.Recv(buffer, 1023);
        DLOG("%s", buffer);
        sleep(1);
    }
    while (true)
    {
        sleep(1);
    }

    return 0;
}